package com.parse.api;

import java.util.List;

import android.app.Activity;

import com.parse.domain.PaserDomin;

public abstract class PaserDBI {

	public abstract <T extends PaserDomin> void inser(T insertObj,
			Activity activity);

	public abstract <T extends PaserDomin> void inserWithoutUserId(T insertObj,
			Activity activity);

	/**
	 * one 2 many insert
	 * 
	 * @param pareObj
	 * @param sonObj
	 */
	public abstract <T1 extends PaserDomin, T2 extends PaserDomin> void inserOne2Many(
			T1 pareObj, List<T2> sonObjs, Activity activity);

	public abstract <T1 extends PaserDomin, T2 extends PaserDomin> void inserOne2ManyWithoutUserId(
			T1 pareObj, List<T2> sonObjs, Activity activity);

	// public abstract <T extends PaserDomin> List<T> query(String objectId,
	// Class<T> pClass);

	/**
	 * 
	 * @param objectId
	 * @param pClass
	 */
	public abstract <T extends PaserDomin> void delete(String objectId,
			Class<T> pClass, Activity activity);

}
